import request from '@/utils/request'

// 查询舱单系统申报认证列表
export function listMftDeclAccountInfo(query) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/list',
    method: 'get',
    params: query
  })
}

// 查询舱单系统申报认证详细
export function getMftDeclAccountInfo(id) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/getInfo/' + id,
    method: 'get'
  })
}

export function getEntInfo() {
  return request({
    url: '/swdecl/mftDeclAccountInfo/getEntInfo',
    method: 'get'
  })
}


// 新增舱单系统申报认证
export function addMftDeclAccountInfo(data) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/add',
    method: 'post',
    data: data
  })
}

// 修改舱单系统申报认证
export function updateMftDeclAccountInfo(data) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/edit',
    method: 'post',
    data: data
  })
}

// 删除舱单系统申报认证
export function delMftDeclAccountInfo(id) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/remove/' + id,
    method: 'get'
  })
}

// 导出舱单系统申报认证
export function exportMftDeclAccountInfo(query) {
  return request({
    url: '/swdecl/mftDeclAccountInfo/export',
    method: 'get',
    params: query
  })
}
